 <?
$cmd="select * from ".TABLE_C."content where series=7 order by orderby desc,id desc";
$rsp=mysql_query($cmd);
?>
<div class="flexslider">
	<ul class="slides">
		<? while($row=mysql_fetch_assoc($rsp)){
			$picture=$row['imagefile'];
			$url=$row['videourl'];
			//echo "<div> <img class='slideImg' src=\"uploads/content/$picture\"></div>";
			//echo "<li style=\"background: url(uploads/content/$picture) 50% 0 no-repeat;\"  ondblclick=\"window.open('$url','_blank');\"></li>";
			echo "<li style=\"background: url(uploads/content/$picture) 50% 0 no-repeat;\" ></li>";
			}
		?>
	</ul>
</div>

<?mysql_free_result($rsp);?>

<script>
$(window).load(function() {
	$('.flexslider').flexslider({
		directionNav: false,
		slideshowSpeed:7000,
		pauseOnAction: false
	});
});
</script>